Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support skipping prompts for installing GUI dependencies #395

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

crowecawcaw
Copy link
Contributor

@crowecawcaw crowecawcaw commented Jul 5, 2024

What was the problem/requirement? (What/Why)

DCM should be able to invoke deadline bundle gui-submit non-CLI users can still submit bundles. But if the GUI dependencies aren't already installed, the command will hang until the prompt about installing GUI dependencies is answered.

What was the solution? (How)

Support a --install-gui flag that skips the prompt.

What is the impact of this change?

DCM can invoke the bundle submitter more reliably.

How was this change tested?

By uninstalling PySide and then calling deadline bundle gui-submit and deadline config gui with and without the --install-gui flag.

Was this change documented?

Yes - in the CLI help.

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@crowecawcaw crowecawcaw requested a review from a team as a code owner July 5, 2024 22:10
Copy link
Contributor

@epmog epmog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have some lessons learned with the regular deadline bundle submit command that a --yes/-y for these bigger workflows that can have multiple prompts does not work well. It's not obvious what the --yes should be choosing if a default is not affirmative. It begins to become arbitrary as you force your way through the flow and you lose fine-grained control of those choices.

After the first-use, the -y isn't even used for anything since the user won't be prompted again.

Instead, what are your thoughts about doing something like --ensure-gui? This way we can still bypass this by choosing ahead of time that we will accept the "do you want to install the gui" prompt without confusing it with other prompts/options

Signed-off-by: Stephen Crowe <[email protected]>
@crowecawcaw crowecawcaw requested a review from epmog July 10, 2024 21:46
@crowecawcaw crowecawcaw merged commit 74293ac into aws-deadline:mainline Jul 11, 2024
15 checks passed
github-actions bot pushed a commit to Ahuge/deadline-cloud that referenced this pull request Jul 12, 2024
…eadline#395)

* feat: support skipping prompts for installing GUI dependencies

Signed-off-by: Stephen Crowe <[email protected]>
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jul 17, 2024
…eadline#395)

* feat: support skipping prompts for installing GUI dependencies

Signed-off-by: Stephen Crowe <[email protected]>
Signed-off-by: Cloud User <[email protected]>
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Aug 26, 2024
…eadline#395)

* feat: support skipping prompts for installing GUI dependencies

Signed-off-by: Stephen Crowe <[email protected]>
Signed-off-by: Cloud User <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants